body {
    --book-bg: #183766;
    --book-border: black;
    --book-card: white;
    --book-title: black;
}
body[arco-theme="dark"] {
    --book-bg: #630700;
    --book-border: #3b8c75;
    --book-card: #f1f1f1;
    --book-title: #496884;
}
.home-page {
    height: 100%;
    width: 100%;
    background-color: var(--book-bg);
}

.book-list {
    margin: auto;
    pointer-events: none;
    height: 100%;
    max-width: 100%;
    flex: 1;
    justify-content: center;
    user-select: none;
    overflow-x: scroll;
    opacity: 0;

    z-index: 1;
    touch-action: pan-x;
    transition: opacity 0.5s;
}

.book-item:hover {
    transform: translateY(-20px);
    margin: auto 0.5rem;
    opacity: 1;
}
.home-page:hover .book-list {
    opacity: 1;
    pointer-events: all;
}
.book-item-wrapper {
    justify-content: center;
}
/* 在 screen 类型 小于 240px 或 大于360px 小于 700px 加载 */
@media screen and (max-width: 1050px) {
    .book-item-wrapper {
        padding: 0 40vw;
        /* 保证能够左右有适当空间 */
        width: fit-content;
    }
}

.book-item {
    opacity: 0.7;
    transition: all 0.5s;
    transition-delay: 0.1s;
    align-items: center;
    height: 50%;
    margin: 0.3rem;
    background-color: #c48940;
    position: relative;
    writing-mode: vertical-lr;
    font-size: 1.5rem;
    cursor: pointer;
    flex: none;
}

.book-item::after,
.book-item::before {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
}
.book-item::before {
    bottom: 1rem;
    border-top: 2px solid black;
    border-bottom: 4px solid black;
}
.book-item::after {
    top: 1rem;
    border-top: 4px solid black;
    border-bottom: 2px solid black;
}
.book-item:hover .book-link {
    margin-top: 2rem;
    color: #000 !important;
}
.book-item .book-link {
    margin-top: 2rem;
    transition: color 0.3s;
    color: #333 !important;
}
.book-header-wrapper {
    height: fit-content;
    background-color: var(--book-card);
    color: var(--book-title);
    position: absolute;
    right: 4rem;
    top: 4rem;
}

.book-header {
    font-size: 3rem;
    padding: 2rem 0.7rem;
    writing-mode: vertical-lr;
    position: relative;
}
.book-header::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    box-sizing: border-box;
    border: 2px solid var(--book-border);
    transform-origin: 50% 50%;
    transform: scale(0.68, 0.935);
}
.book-header::after {
    content: "";
    width: 100%;
    height: 100%;
    border: 4px solid var(--book-border);
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    transform-origin: 50% 50%;
    transform: scale(0.8, 0.97);
}
